package com.n9.buymsg.view.table;

import java.lang.reflect.Field;

/**
 * JTable列与模型字段对应类
 * @author ice
 */
public class JTableColumnField {
    /**
     * 列名
     * @return
     */
    private String title;

    /**
     * 优选宽度
     * @return
     */
    private int preferredWidth;

    /**
     * 最小宽度
     * @return
     */
    private int minWidth;

    /**
     * 最大宽度
     * @return
     */
    private int maxWidth;

    /**
     * 对应字段
     */
    private Field field;

    /**
     * 是否为行号
     */
    private boolean rowIndex;

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public int getPreferredWidth() {
        return preferredWidth;
    }

    public void setPreferredWidth(int preferredWidth) {
        this.preferredWidth = preferredWidth;
    }

    public int getMinWidth() {
        return minWidth;
    }

    public void setMinWidth(int minWidth) {
        this.minWidth = minWidth;
    }

    public int getMaxWidth() {
        return maxWidth;
    }

    public void setMaxWidth(int maxWidth) {
        this.maxWidth = maxWidth;
    }

    public Field getField() {
        return field;
    }

    public void setField(Field field) {
        this.field = field;
    }

    public boolean isRowIndex() {
        return rowIndex;
    }

    public void setRowIndex(boolean rowIndex) {
        this.rowIndex = rowIndex;
    }
}
